(function ($) {

Drupal.WeebPalBackend = Drupal.WeebPalBackend || {};

Drupal.behaviors.actionWeebPalBackend = {
  attach: function (context) {

    var link = $("#page #header .content > ul.menu > li > a", context);
    if(link.length > 0 && !link.parent().hasClass("expanded")) {
      link.trigger("click");
    }

  }
};

})(jQuery);
